package com.example.demo.util;

import java.util.HashMap;
import java.util.Map;

public class LocalCache {

    public  static Map<String,Object> map  =new HashMap<>();;
    public static Map setMap(String key,Object value){
      if(map==null){
          map=new HashMap<>();
      }
        map.put(key,value);
        return  map;
    }
    public static Object getMap(String key){
        if(map==null){
            return  null;
        }
        return  map.get(key);
    }
}
